package com.lc.sell.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙晨
 * @since 2022-02-01
 */
@Getter
@Setter
@TableName("dc_merchant")
@ApiModel(value = "Merchant对象", description = "")
public class Merchant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商家id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("图片")
    @TableField("image")
    private String image;

    @ApiModelProperty("商家账号")
    @TableField("useruuid")
    private String useruuid;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("真实姓名")
    @TableField("realname")
    private String realname;

    @ApiModelProperty("商家名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商家名称")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("是否显示（0-显示 1-不显示）")
    @TableField("is_show_backstage")
    private Integer isShowBackstage;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty("商品列表")
    @TableField(exist = false)
    private List<Product> productList;

}
